<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
<table border="1">
    <tr align="center" >
        <td colspan="2">新闻详情页</td>
    </tr>
    <tr>
        <td>标题</td>
        <td>点击量</td>
    </tr>
    <tr>
        <td><?php echo $arr['news_name']?></td>
        <td>
            <input type="hidden" id="id" value="<?php echo $arr['id']?>">
            <p></p>
        </td>
    </tr>
</table>
</body>
</html>
<script src="jquery-2.1.4.min.js"></script>
<script>
    $(function(){
        var id=$("#id").val();
        $.ajax({
            url:'num.php?id='+id,
           success:function(data)
           {
               $('p').html(data);
           }
        })
    })
</script>